STEP 3: Let's ask the user for input that we can use to generate our secure password.

  • In GRAPHICS, from drop Ask at the bottom of your program.
  • Change the input variable name from choice to website. We always name variables clearly and descriptively!
  • Change the string in .ask() to "What website is this password for?"

Remember, all user input is a string! website is a variable storing whatever the user enters as a string.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)